import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

//引入user模块
//引入getters
import getters from './getters'
import user from './modules/user'
import shop from './modules/shop'

//创建一个实例
const store = new Vuex.Store({
  getters,
  modules: {
    user,
    shop
  },
})

//导出仓库
export default store
